#include <header.h>

int main(){

    int file1 = open("./test/1.txt", O_RDWR); 
    int file2 = open("./test/zs/1.txt", O_RDWR| O_CREAT, 0666);


    while(1){
        char buf[4096] = {0};
        ssize_t read_size = read(file1, buf, sizeof(buf));
        if(read_size == 0){
            break;
        }
        write(file2, buf, read_size);
    }

    close(file1);
    close(file2);
    return 0;
}

